{{include file="header.html"}}
{{include file="menu.html"}}
{{assign var="message_type" value='message_type'|C}}
{{include file="{{$smarty.const.PLUG}}zoom/zoom.html"}}
<link rel="stylesheet" href="{{$smarty.const.__APP__}}style/message.css">
<div class="message">
  <div class="msg-list">
  	  <ul>
	  	  {{if $message}}
	  	  {{foreach from=$message item=val}} 
	  	  <li>
            <div class="kcc-txt">
              <h2>类型：【{{$message_type[$val.item]}}】</h2>
              <h3>{{$val.adddate}}</h3>
              <p>{{$val.content|replace:"\r\n":'<br>'}}</p>
              {{if $val.params.photos}}
				{{foreach from=$val.params.photos item=vvv key=kkk name=nnn}}
				<a class="zoom" href='{{$vvv|photo}}' style="vertical-align:top;height:40px;width:40px;display: inline-block;overflow: hidden;background-size: cover;background-image:url('{{$vvv|photo:40:40:true}}')"></a>
				{{/foreach}}
				{{/if}}
              {{if $val.reply.content}}<p class="green"><strong>回复：</strong>{{$val.reply.content|replace:"\r\n":'<br>'}}</p>{{/if}}
              	
            </div>
          </li>
	  	  {{/foreach}}
	  	  {{/if}}
      </ul>
  </div>
	<div class="msg-form">
        <div class="item item-btns">
            <a class="btn-login"  href="index.php?app=message&act=send">我要留言</a>
        </div>
    </div>
</div>
</body>
</html>